<template>
	<view class="container">
		<view class="grid-list">
			<view class="grid-item" @click="navigateTo('/pages/teaching/classroom')">
				<image src="/static/icons/classroom.png" mode="aspectFit"></image>
				<text>智慧教室管理系统</text>
				<text class="desc">物联网集中管控，人脸识别预约，课堂行为分析</text>
			</view>
			<view class="grid-item" @click="navigateTo('/pages/teaching/online')">
				<image src="/static/icons/online.png" mode="aspectFit"></image>
				<text>在线教学平台</text>
				<text class="desc">课程录制直播，互动测评，AI答疑</text>
			</view>
			<view class="grid-item" @click="navigateTo('/pages/teaching/resources')">
				<image src="/static/icons/resources.png" mode="aspectFit"></image>
				<text>教学资源库</text>
				<text class="desc">优质资源整合，智能分类推荐，在线协作</text>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {}
	},
	methods: {
		navigateTo(url) {
			uni.navigateTo({
				url
			})
		}
	}
}
</script>

<style lang="scss">
.container {
	padding: 20rpx;
	
	.grid-list {
		display: flex;
		flex-direction: column;
		gap: 30rpx;
		
		.grid-item {
			background: #FFFFFF;
			border-radius: 20rpx;
			padding: 30rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			box-shadow: 0 2rpx 10rpx rgba(0,0,0,0.1);
			
			image {
				width: 120rpx;
				height: 120rpx;
				margin-bottom: 20rpx;
			}
			
			text {
				font-size: 32rpx;
				color: #333;
				margin-bottom: 10rpx;
				
				&.desc {
					font-size: 24rpx;
					color: #666;
					text-align: center;
				}
			}
		}
	}
}
</style> 